package com.qf.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Data
//标识这个类是一个封装配置信息的属性类，封装的是配置文件中以stu为前缀的属性内容
@ConfigurationProperties(prefix = "stu")
public class Student {
    private String username;
    private Integer age;
    private String[] hobbies;
    private List<String> hobbies2;
}
